import React, {Component} from 'react';
import { Breadcrumb as AntdBreadcrumb } from 'antd';
import { connect } from 'dva';
import styles from './css/Breadcrumb.css';

class Breadcrumb extends Component {
	
	render() {
		let {state, dispatch} = this.props
		return (
			<AntdBreadcrumb className={styles.container}>
		        <AntdBreadcrumb.Item>管理系统</AntdBreadcrumb.Item>
		        <AntdBreadcrumb.Item>{state.tab}</AntdBreadcrumb.Item>
	      	</AntdBreadcrumb>
		)
	}
	
}

export default connect(state => ({
	state: {
		...state.system,
		loading: state.loading.models.system
	}
}))(Breadcrumb);